package com.wpr.shop.modules.global.validate;

/**
 * describe:
 *
 * @author zhanglisheng
 * @date 2018/10/25
 */
public enum ReturnCode implements ErrorCode  {

    OK(0, "成功"),
    ERROR_GENER(1001, "服务器异常，请您稍后再试！"),
    WARN_NPWD_EQUEAL_OPWD(1002,"新密码和当前密码相同，请重新输入"),
    ERROR_ACCOUNT_PWD(1003, "帐号或密码错误"),
    ERROR_YET_LOGIN(1004, "登录状态已失效，请重新登录"),
    ERROR_PARAM(1005, "参数错误"),
    ERROR_NO_USER(1006, "用户不存在"),;

    private final int value;
    private final String comment;

    private ReturnCode(int value, String comment) {
        this.value = value;
        this.comment = comment;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public String getComment() {
        return comment;
    }
}
